package com.inspectionwork.web.web;

import cn.hutool.json.JSONObject;
import com.inspectionwork.common.base.BaseController;
import com.inspectionwork.support.annotaion.Action;
import com.inspectionwork.support.model.RespEntity;
import com.inspectionwork.web.service.BusinessService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @author Yang
 */
@Action
@RequestMapping(value="business")
public class BusinessController extends BaseController {
    @Resource
    public BusinessService businessService;
    /**
     * 消防主管部门树形菜单接口
     * @param jsonParam
     * @return
     */
    @RequestMapping(value = "/fireDepartmentTreeList",method = RequestMethod.GET)
    public RespEntity fireDepartmentTreeList(@RequestBody(required = false) JSONObject jsonParam) {
        return businessService.fireDepartmentTreeList(jsonParam);
    }
    /**
     * 行业主管部门树形菜单接口
     * @param jsonParam
     * @return
     */
    @RequestMapping(value = "/industryAuthoritiesTreeList",method = RequestMethod.GET)
    public RespEntity industryAuthoritiesTreeList(@RequestBody(required = false) JSONObject jsonParam) {
        return businessService.industryAuthoritiesTreeList(jsonParam);
    }
}
